package com.mobileares.midp.widgets.client.anchor;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Composite;

/**
 * Created by IntelliJ IDEA.
 * User: Tom
 * Date: 2011-3-16
 * Time: 16:34:57
 * To change this template use File | Settings | File Templates.
 */
public class TextAnchor extends Composite {

    private Anchor anchor;

    public TextAnchor(String text) {
        anchor = new Anchor(text);
        anchor.setStyleName("anchor-text");
        initWidget(anchor);
    }

    public void addClickHandler(ClickHandler handler) {
        anchor.addClickHandler(handler);
    }

}
